package com.itheima.inter3;

public class Demo01 {

    public static void main(String[] args) {
        InterA.sing();
        InterB.sing();
        InterImpl.sing();

    }
}

interface InterA{
    public static void sing(){
        zhiyinnitaimei();
        //....
    }

    private static void zhiyinnitaimei() {
        System.out.println("只因你太美");
    }

    public static void sing2(){
        zhiyinnitaimei();
        //...
    }
}
interface InterB{
    public static void sing(){
        System.out.println("大碗宽面");
    }
}
class InterImpl implements InterA,InterB{
    public static void sing(){
        System.out.println("XXXX");
    }
}